package com.weijin.springbootbase.service;

import com.weijin.springbootbase.common.PageResult;
import com.weijin.springbootbase.common.Result;
import com.weijin.springbootbase.pojo.User;

import java.util.List;

/**
 * @Author WeiJin
 * @Version 1.0
 * @Date 2025/3/11 10:57
 */
public interface UserService {
    Result<List<User>> queryAll();

    Result<String> addUser(User user);

    Result<String> deleteById(Integer id);

    Result<String> modifyUser(User user);

    Result<User> queryById(Integer id);

    Result<String> deleteBatchIds(Integer[] ids);

    Result<PageResult<User>> queryPage(Integer pageNum, Integer pageSize);

    Result<User> queryRedisById(Integer id);

}
